package com.jyu.sati.business.dao;

import java.util.List;

import com.jyu.sati.entity.Adminstrator;
import com.jyu.sati.vo.UserInfoPageVo;
import com.jyu.sati.vo.UserInfoVo;

public interface AdminstratorDao {
	int deleteByPrimaryKey(Integer administratorId);

	int insert(Adminstrator record);

	int insertSelective(Adminstrator record);

	Adminstrator selectByPrimaryKey(Integer administratorId);

	int updateByPrimaryKeySelective(Adminstrator record);

	int updateByPrimaryKey(Adminstrator record);

	/**
	 * 获取一页超级管理员用户数据
	 * 
	 * @param condition
	 * @return
	 */
	List<UserInfoVo> getSuperUserInfoPageByCondition(UserInfoPageVo condition);

	/**
	 * 根据查询条件获取总数(超级管理员)
	 * 
	 * @param condition
	 * @return
	 */
	Integer getSuperTotalNoByCondition(UserInfoPageVo condition);

	/**
	 * 获取一页平台管理员用户数据
	 * 
	 * @param condition
	 * @return
	 */
	List<UserInfoVo> getPlatformUserInfoPageByCondition(UserInfoPageVo condition);

	/**
	 * 根据查询条件获取总数 (平台管理员)
	 * 
	 * @param condition
	 * @return
	 */
	Integer getPlatformTotalNoByCondition(UserInfoPageVo condition);
}